<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <script src="../js/vue.js"></script>
    </head>
    <body>
        <div id="demo">
            <h3>字符串</h3>
            <ul>
                <li v-for="(s, index) in str">{{index}} - {{s}}</li>
            </ul>
            <h3>对象</h3>
            <ul>
                <li v-for="(value, attr) in obj">{{attr}} - {{value}}</li>
            </ul>
            
            <h3>固定数值</h3>
            <ul>
                <li v-for="(value,index) in 5">{{index}} - {{value}}</li>
            </ul>
        </div>
        <script>
            /**
             * 字符串
             * 对象
             * 
             */
            new Vue({
                el:'#demo',
                data: {
                    str:'1234567890',
                    obj:{
                        name:'atguigu',
                        age:10,
                        address:'宏福科技园'
                    }
                }
            })
        </script>
    </body>
</html>